Function Export-CurrentISEOptions
{
    [CmdletBinding()]
    Param()
    
    Process
    {
        $private:SaveFileDialog = New-Object System.Windows.Forms.SaveFileDialog
        $SaveFileDialog.Title = "Export ISE Options to File"
        $SaveFileDialog.Filter = "XML files (*.xml)|*.xml|All files (*.*)|*.*"
        $private:DialogResult = $SaveFileDialog.ShowDialog()
        
        If ($DialogResult -Eq [System.Windows.Forms.DialogResult]::OK)
        {
            $private:FileName = $SaveFileDialog.FileName
            $private:Xml = [Xml](Get-XmlString $psISE.Options)
            $Xml.Save($FileName)
        }
    }
}

Export-ModuleMember Export-CurrentISEOptions
